<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>06_盒子模型-特点-边界问题-上左右</title>
        <style>
            #wrapper {
                width: 600px;
                height: 300px;
                border: 1px solid black;
            }

            .item {
                float: left;
                width: 100px;
                height: 100px;
                background-color: red;
                border: 1px solid yellow;
            }

            .item1 {
                float: right;
                width: 100px;
                height: 100px;
                background-color: green;
                border: 1px solid yellow;
            }
        </style>
    </head>
    <body>
        <div id="wrapper">
            <div class="item">1</div>
            <div class="item1">2</div>
            <div class="item1">3</div>
            <div class="item1">4</div>
            <div class="item1">5</div>
            <div class="item1">6</div>
            <div class="item1">7</div>
            <div class="item1">8</div>
            <div class="item1">8</div>
            <div class="item1">8</div>
            <div class="item1">8</div>
            <div class="item1">8</div>
            <div class="item1">8</div>
            <div class="item1">8</div>
            <div class="item1">8</div>
            <div class="item1">8</div>
            <div class="item1">8</div>
            <div class="item1">8</div>
            <div class="item1">8</div>
        </div>
    </body>
</html>